
import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import {LoeeEntity} from '../../../comentity'


/**
 * 学生上课明细表
 */
@EntityModel('student_class_detail')
export class studentClassDetailEntity extends LoeeEntity {
  @Column({ comment: '学生' })
  student: number;

  @Column({ comment: '班级授课id' })
  class_teaching: number;

  @Column({ comment: '常规课使用数量' })
  common_use_num: number;

  @Column({ comment: '特殊课使用数量' })
  special_use_num: number;

  @Column({ comment: '课程使用类型',nullable: true})
  use_type: number;

  @Column({ comment: '请假' })
  isLeave: boolean;

  @Column({ comment: '插班' })
  isPlacement: boolean;

  @Column({ comment: '课堂评分',type:'decimal',scale:2,precision:10  })
  rate: number;

  @Column({ comment: '课堂评语',length:1000,nullable: true})
  comments: string;

  @Column({ comment: '备注',length:1000,nullable: true})
  note: string;
}
